package com.wb.mas.app;

import android.text.TextUtils;

import com.blankj.utilcode.util.SPUtils;


public class UUidUtils {

    public static String getUUid() {
        String backUuid = SPUtils.getInstance().getString(SPKeys.SP_BACK_USERUUID);
        String uuid = SPUtils.getInstance().getString(SPKeys.SP_USERUUID);
        if (!TextUtils.isEmpty(backUuid)) {
            return backUuid;
        } else if (!TextUtils.isEmpty(uuid)) {
            return uuid;
        } else {
            return "";
        }

    }

    public static String getAddressBookUuid() {
        String addressUuid = SPUtils.getInstance().getString(SPKeys.SP_ADDRESSBOOKUUID);
        if (!TextUtils.isEmpty(addressUuid)) {
            return addressUuid;
        } else {
            return "";
        }
    }


    public static boolean isBackState() {
        String backUuid = SPUtils.getInstance().getString(SPKeys.SP_BACK_USERUUID);
        return TextUtils.isEmpty(backUuid);

    }
}
